﻿@{
    Layout = "~/Views/Shared/_General.cshtml";
    ViewBag.SiteCategory = "game";
}
@*
<script type="text/javascript">
    $(function () {
        //high light li(0)
        $("div#SiteIndex ul li.@ViewBag.Category a").addClass("xt");

        $("select.products_name_chose").bind("change", function (e) {
            var currency_type = $(this).val();
            var currency_type_str = $(this).children("option:selected").text();
                 var cardinforid1 = $(this).parent().attr('id');
                 var params = '{CurrencyType:"' + currency_type + '",CardInfoID:"' + cardinforid1 + '"}';
                 $.ajax({
                    type: "POST",
                    cache:false,
                    url: "@Url.Action("GetCardsPriceInfo", "Exchange")",
                    data: params,
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    success: function (result) {
                        var cardPriceCollection = result.cardsPrice;
                        var cardinfoid = result.CardInfoID;
                        var divitem = $("div#" + cardinfoid);
                        var divc = divitem.children(":eq(2)");
                        divc.find('td').each(function(index){
                            var Idattr = $(this).attr('id');
                            var thistd = $(this);
                            $.each(cardPriceCollection,function(index,item){
                                if(item.CardId == Idattr)
                                {
                                    thistd.find('.products_arrow_price1').html(currency_type_str);
                                    thistd.find('.commonprice').html(item.CommomPrice);
                                    thistd.find('.vipprice').html(item.VIPPrice);
                                }
                            });
                        });
                    },
                    error: function (xhr, msg, e) {
                        alert(msg);
                    }
                 });

             });
    });
</script>*@

<div class="main_center">
    @{Html.RenderAction("GameClass", "Widget", null);}
                    <div class="weizhi">
                    <div class="weizhi_bg ui-icons">
                        <p>可以用于充值 <b>@ViewBag.GameName</b> 的商品有: </p>
                    </div>
                </div>
    <div class="products">
        @if (ViewBag.CardInfoesShow != null)
        {
            foreach (object singleCardinfo in ViewBag.CardInfoesShow)
            {
                @Html.Partial("CardInfoItemInHomeTemplate", singleCardinfo)
            }
        }
    </div>

</div>
